Repository navigation
test(libSceIcu): include initializer_list where the tests build lists - #28849
oneandonlydean merged 1 commit into
Conversation
libc++ on macOS does not pull the header in through the other includes, so Char16PtrStringPieceInline.cpp and GuestIcuArrayComparators.cpp did not compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head a6c5f73ad83b94846267f4cb11eec1ba13b93e13, including the prepared diff and the complete contents of both changed files. No tests or builds were run. The repo_read.py attempt returned source output, then reported that it could not append its read log in the read-only workspace.
sed -n '1,150p' files/core/libs/tests/GuestIcuArrayComparators.cpp
sed -n '180,250p' files/core/libs/prx/libSceIcu/tests/Char16PtrStringPieceInline.cpp
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | Both changed files read |
| Tests and builds | not run | Author reports macOS test results |
Findings
Blocking
None.
Non-blocking
None.
Not verified
- The author-reported macOS build and test results were not independently run.
- Linux and Windows builds were not run.
- Files reviewed:
core/libs/prx/libSceIcu/tests/Char16PtrStringPieceInline.cppandcore/libs/tests/GuestIcuArrayComparators.cpp.files.jsonlists no excluded files.
To get this to a good state
No follow-up required.
|
I reproduced the compile failures on x86-64 Arch Linux with Clang and libc++ 23.1.5. I compiled the two exact translation units to objects in C++23 mode, using their repository headers from the same revisions.
This check covers compilation of the two changed sources. Test execution was covered by the macOS run in the PR description. AI-assisted: yes. |
What
Char16PtrStringPieceInline.cppandGuestIcuArrayComparators.cppbuildstd::initializer_listvalues through range-for loops over braced lists but do not include<initializer_list>. With libc++ on macOS neither test compiles ("cannot deduce type of initializer list because std::initializer_list was not found"). Each file now includes the header. No behaviour changes.Tested
On macOS 15.7.9 (Apple M4, x86_64 Release build under Rosetta 2, Apple clang with libc++),
maine8f09d2877plus the open macOS build fixes #27201, #27767, #27739 and #27843 without this change: both test files failed to compile, 15 errors in the first and one in the second. With this change both build, andctest -R "guest_icu_char16ptr_string_piece_inline|guest_icu_array_comparators"passes 2 of 2.Not run: Linux and Windows builds; the include is standard and adds no dependency.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit